import {createBrowserRouter} from 'react-router-dom'
import Order from '../pages/order/Index'
import Pay from '../pages/pay/Index'
import Error from '../pages/404/Index'
import Layout from '../pages/layout/Index'

let routes=createBrowserRouter([
    {
        path:'/',
        element:<Layout></Layout>
    },
    {
        path:'/pay',
        element:<Pay></Pay>
    },
    {
        path:'/order',
        element:<Order></Order>
    },
    {
        path:'*',
        element:<Error></Error>
    }
])

export default routes